#ifndef PACKET_FACTORY_H
#define PACKET_FACTORY_H
#include "Singleton.h"
#include "MemoryPoolFactory.h"

class Packet;

class PacketFactory : public Singleton<PacketFactory>
{

public:
	PacketFactory();
	~PacketFactory();


	VOID									Release();
	VOID									Init( DWORD dwSize );

	Packet*									Alloc();
	VOID									Free( Packet* pPacket);

protected:
	CMemoryPoolFactory<Packet>		        *m_pPacketPool;
	

};



#endif